package com.cvpoc.model;

import java.io.Serializable;

public class CollaborateurCertification implements Serializable {
	private static final long serialVersionUID = 6873065959593924221L;

	private int id_collaborateur;
	private Certification certification;

	public CollaborateurCertification() {
		super();
	}

	public int getId_collaborateur() {
		return id_collaborateur;
	}

	public void setId_collaborateur(int id_collaborateur) {
		this.id_collaborateur = id_collaborateur;
	}

	public Certification getCertification() {
		return certification;
	}

	public void setCertification(Certification certification) {
		this.certification = certification;
	}

	@Override
	public String toString() {
		return "CollaborateurCertification [id_collaborateur="
				+ id_collaborateur + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((certification == null) ? 0 : certification.hashCode());
		result = prime * result + id_collaborateur;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CollaborateurCertification other = (CollaborateurCertification) obj;
		if (certification == null) {
			if (other.certification != null)
				return false;
		} else if (!certification.equals(other.certification))
			return false;
		if (id_collaborateur != other.id_collaborateur)
			return false;
		return true;
	}
}
